<%@ page contentType="text/html; charset=UTF-8" %>
<ul class="nav nav-tabs">
	<li><a href="${ctx}/euler/chartMap">地图图表</a></li>
	<li><a href="${ctx}/euler/chart">显示图表</a></li>
	<li><a href="${ctx}/euler/list">测试列表</a></li>
	<li><a href="${ctx}/euler/form?age=20">测试数据添加</a></li>
    <li><a href="${ctx}/euler/configCharts">配置图表源</a></li>
    <li><a href="${ctx}/euler/workFlow">配置流程</a></li>
</ul>
<script>
	function getSuffix (data) {
		var tmp = data.split("/");
		return tmp[tmp.length -1 ];
	}
	$(function(){
		var currentSuffix = getSuffix(document.location.href);
		$("ul li").each(function(){
			var href = $($(this).find("a")[0]).attr("href");
			var tmpSuffix = getSuffix(href);
			if (currentSuffix == tmpSuffix) {
				$(this).addClass('active');
				//$(this).attr("clss", "active");
			}
		})
	})
</script>